class ItemAlliancesAddItemId < ActiveRecord::Migration
  def self.up
  	add_column :item_alliances, :item_id, :integer, :null => false
  	add_foreign_key(:item_alliances, :items, :column => 'item_id', :dependent => :delete)
  end

  def self.down
  	remove_column :item_alliances, :item_id
  	remove_foreign_key(:item_alliances, :items)
  end
end
